import Vue from 'vue'
import App from './App.vue'


// 使用ElementUI
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

//使用echarts
//import echarts from 'echarts'
//Vue.prototype.$echarts = echarts

import axios from 'axios'
Vue.use(axios);
Vue.prototype.$axios = axios


import echarts from 'echarts'
Vue.use(echarts)
Vue.prototype.$echarts = echarts
 



// import VueAMap from 'vue-amap';
// Vue.use(VueAMap);
// VueAMap.initAMapApiLoader({
//   key: 'b0488c6b4b9e072325bf88eb2571d0dc',
//   plugin: ['AMap.Autocomplete', 'AMap.PlaceSearch', 'AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType', 'AMap.PolyEditor', 'AMap.CircleEditor'],
//   v: '1.4.4'
// });


import * as filters from './filters.js'

Object.keys(filters).forEach(key => {
  Vue.filter(key, filters[key])//插入过滤器名和对应方法
})

Vue.config.productionTip = false

new Vue({
  render: h => h(App),
}).$mount('#app')
